﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Edge.Business.Entities;

namespace Dune.Business.Domain.Users
{
    /// <summary>
    /// Person object for NHibernate mapped table 'users_pers'.
    /// </summary>
    [Serializable]
    [Description("Персонаж")]
    public class Person : UserEntity<int>
    {
        protected string name;
        protected string history;
        protected string imageSrc = "img/no_image.gif";
        protected int points;
        protected int money;
        protected PersonType type;
        protected bool _default;


        public Person()
        {
        }

        public Person(string _name, User _user, string _history, bool _def, DateTime _regDate, PersonType _type,string _imgSrc)
        {
            this.name = _name;
            this.CreatedBy = _user;
            this.history = _history;
            this._default = _def;
            this.CreateDate = _regDate;
            this.type = _type;
            this.imageSrc = _imgSrc;

        }

        public string ImageSrc
        {
            get { return imageSrc; }
            set { imageSrc = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string History
        {
            get { return history; }
            set { history = value; }
        }

        public int Points
        {
            get { return points; }
            set { points = value; }
        }

        public int Money
        {
            get { return money; }
            set { money = value; }
        }

        public PersonType Type
        {
            get { return type; }
            set { type = value; }
        }

        public bool Default
        {
            get { return _default; }
            set { _default = value; }
        }

    }
}
